from django import forms
from .models import comment


class commentForm(forms.Form):
    secretId = forms.CharField(required=True, min_length=1)
    userComment = forms.CharField(required=True, min_length=1, error_messages={'required': '评论不能为空！'})
    commentReplyId = forms.CharField(required=False)


class agreeForm(forms.Form):
    secretId = forms.CharField(required=True)


class ReportForm(forms.Form):
    secretId = forms.CharField(required=True, min_length=1)
    ReportReasonId = forms.CharField(required=True, min_length=1, error_messages={'required': '举报选项不能为空！'})
    ReportCommentId = forms.CharField(required=False)


class JarInformationForm(forms.Form):
    TreeHole_id = forms.CharField(required=True, min_length=1)


class SubSecretForm(forms.Form):
    TreeHole_id = forms.CharField(required=True)
    Weather = forms.CharField(required=True)
    Temperature = forms.CharField(required=True)
    CanText = forms.CharField(required=False)
    WordId = forms.CharField(required=False)
    WSInputName = forms.CharField(required=True)
    Interaction = forms.IntegerField(required=True)
